<!--{subtemplate common/header}-->

<!-- main START -->
<div id="main" style="width: 980px;">
	<div id="pt" class="bm cl">
		<div class="z">
			<a href="{$_G['setting']['siteurl']}" class="nvhm" title="{lang Homepage}">$_G[setting][sitename]</a> <em>&rsaquo;</em>
			{lang Article Ranklist}
		</div>
	</div>
	<div class="post">
		<h1 class="mt">{lang Article Ranklist}</h1>
		<ul class="tb cl">
			<li{if $_G[gp_orderby] == 'heats'} class="a"{/if}><a href="index.php?option=misc&task=ranklist&orderby=heats&before=$_G['gp_before']">{lang Latest list}</a></li>
			<li{if $_G[gp_orderby] == 'replies'} class="a"{/if}><a href="index.php?option=misc&task=ranklist&orderby=replies&before=$_G['gp_before']">{lang Most replies}</a></li>
			<li{if $_G[gp_orderby] == 'views'} class="a"{/if}><a href="index.php?option=misc&task=ranklist&orderby=views&before=$_G['gp_before']">{lang Most viewed}</a></li>
			<!--{if $clicks}-->
				<!--{loop $clicks $key $value}-->
				<li{if $_G[gp_orderby] == $key} class="a"{/if}><a href="index.php?option=misc&task=ranklist&orderby=$key&before=$_G['gp_before']">$value[name] {lang Ranklist}</a></li>
				<!--{/loop}-->
			<!--{/if}-->
		</ul>
		<p id="before" class="tbmu">
			<a href="index.php?option=misc&task=ranklist&orderby=$_G[gp_orderby]&before=thisweek" id="604800" {if $_G['gp_before'] == 'thisweek'}class="a"{/if} />{lang This week}</a><span class="pipe">|</span>
			<a href="index.php?option=misc&task=ranklist&orderby=$_G[gp_orderby]&before=thismonth" id="2592000" {if $_G['gp_before'] == 'thismonth'}class="a"{/if} />{lang This month}</a><span class="pipe">|</span>
			<a href="index.php?option=misc&task=ranklist&orderby=$_G[gp_orderby]&before=today" id="86400" {if $_G['gp_before'] == 'today'}class="a"{/if} />{lang Today}</a><span class="pipe">|</span>
			<a href="index.php?option=misc&task=ranklist&orderby=$_G[gp_orderby]&before=all" id="all" {if $_G['gp_before'] == 'all'}class="a"{/if} />{lang All}</a>
		</p>
		<!--{if $articlelist}-->
			<div class="xld xlda">
			<!--{loop $articlelist $article}-->
				<dl class="bbda">
					<dd class="ranknum">
						<!--{if $article[rank] <= 3}--><img src="{$_G[siteurl]}/static/image/common/rank_$article[rank].gif" alt="$article[rank]" /><!--{else}-->$article[rank]<!--{/if}-->
					</dd>
					<dt class="xs2">
						<a href="index.php?task=view&aid=$article[aid]:{$article[shorttitle]}" target="_blank">$article[title]</a>
					</dt>
					<dd class="xg1">
						<a href="index.php?option=member&task=profile&uid=$article[uid]" target="_blank">$article[username]</a> <span class="xg1">$article[dateline]</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<!--{if $_G[gp_orderby] == 'heats'}-->{lang Views} $article[viewnum] {lang times}
						<!--{elseif $_G[gp_orderby] == 'replies'}-->{lang Comment} $article[commentnum] {lang items}
						<!--{elseif $_G[gp_orderby] == 'views'}-->{lang Views} $article[viewnum] {lang times}
						<!--{else}-->$clicks[$_G[gp_orderby]][name] $article['click'.$_G[gp_orderby]]<!--{/if}-->
					</dd>
					<dd class="cl">
						$article[message]
					</dd>
				</dl>
			<!--{/loop}-->
			</div>
		<!--{else}-->
			<div class="emp">{lang Data not found}</div>
		<!--{/if}-->
		<div class="notice">{lang Ranklist is updated}</div>
	</div>
</div>
<!--{subtemplate common/footer}-->